/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.service.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import me.zhengjie.annotation.Query;

import java.time.LocalDateTime;

/**
* @website https://eladmin.vip
* @author xinglin
* @date 2024-08-19
**/


@Data
public class PPInventoryQueryCriteria {
    //板子批号
    @Query(type = Query.Type.INNER_LIKE)
    private String pp;

    //根据产品批次号和pp批号进行模糊查询
    // 产品批次号
    @Query(type = Query.Type.INNER_LIKE)
    private String batch;

    //pp批次号
    @Query(type = Query.Type.INNER_LIKE)
    private String ppBatch;

    @Query(type = Query.Type.INNER_LIKE)
    private String ppMaterial;


    @Query(type = Query.Type.INNER_LIKE)
    private String ppModel;

    @Query(type = Query.Type.INNER_LIKE)
    private String ppMfrs;

    @Query(type = Query.Type.INNER_LIKE)
    private String ppSize;

    @Query(type = Query.Type.EQUAL)
    private Integer ppQty;

    //是否打包  0-打包  1-没打包
    @Query(type = Query.Type.EQUAL)
    private Integer isPakage;

    @Query(type = Query.Type.BETWEEN)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime ppExp;

    @Query(type = Query.Type.INNER_LIKE)
    private String ppWorker;

    @Query(type = Query.Type.INNER_LIKE)
    private String ppDevice;

    @Query(type = Query.Type.INNER_LIKE)
    private String method;

    @Query(type = Query.Type.INNER_LIKE)
    private String rc;

    @Query(type = Query.Type.BETWEEN)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime ppPack;

    @Query(type = Query.Type.INNER_LIKE)
    private String ppHole;

    //载具编码
    @Query(type = Query.Type.INNER_LIKE)
    private String palletCode;

    //储位编码
    @Query(type = Query.Type.INNER_LIKE)
    private String storageCode;

    //入库时间
    @Query(type = Query.Type.BETWEEN)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime inboundTime;

    //出库时间
    @Query(type = Query.Type.BETWEEN)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime outBoundTime;

    //是否打包
    @Query(type = Query.Type.EQUAL)
    private Integer packStatus;

    //预警时间
    @Query(type = Query.Type.BETWEEN)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime warningTime;

    //超期时间
    @Query(type = Query.Type.BETWEEN)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime outTime;

    //生产时间
    @Query(type = Query.Type.BETWEEN)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime ppPd;

    //过期时间
    @Query(type = Query.Type.BETWEEN)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime expTime;


    //在库状态 0为在库，1为库外
    @Query(type = Query.Type.EQUAL)
    private Integer stayStatus;

    //日期状态 正常：safe，预警：warning，超期：outTime，过期:  exp
    @Query(type = Query.Type.INNER_LIKE)
    private String dateStatus;

    //锁库状态 0为禁用，1为启用
    @Query(type = Query.Type.EQUAL)
    private Integer lock_status;


}